package com.ssh.entity;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Seller extends BaseEntity{
	private static final long serialVersionUID = 6002548593623858681L;
	private Timestamp createDate;
	private String jobNumber;
	private String post;
	private String name;
	private Integer yibiao;
	private Integer kaoqin;
	private Integer zhishi;
	private Integer jiqiao;
	private Integer del;
	
	private SuperMarket superMarket;

	public Seller() {
	}
	
	@ManyToOne(cascade ={CascadeType.REFRESH},fetch = FetchType.LAZY)             
    @JoinColumn(name="superMarketId") 
	public SuperMarket getSuperMarket() {
		return superMarket;
	}

	public void setSuperMarket(SuperMarket superMarket) {
		this.superMarket = superMarket;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public String getJobNumber() {
		return this.jobNumber;
	}

	public void setJobNumber(String jobNumber) {
		this.jobNumber = jobNumber;
	}

	public String getPost() {
		return this.post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getYibiao() {
		return this.yibiao;
	}

	public void setYibiao(Integer yibiao) {
		this.yibiao = yibiao;
	}

	public Integer getKaoqin() {
		return this.kaoqin;
	}

	public void setKaoqin(Integer kaoqin) {
		this.kaoqin = kaoqin;
	}

	public Integer getZhishi() {
		return this.zhishi;
	}

	public void setZhishi(Integer zhishi) {
		this.zhishi = zhishi;
	}

	public Integer getJiqiao() {
		return this.jiqiao;
	}

	public void setJiqiao(Integer jiqiao) {
		this.jiqiao = jiqiao;
	}
	
	public Integer getDel() {
		return this.del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}
}